define(['underscore','backbone','jquery'], function(_,Backbone,$){
    var WidgetCollection = Backbone.Collection.extend({
        url: '/widgets',
        initialize : function(){
            this.active_workflow = false;
        },
        parse : function(response){
            if (typeof response === 'string')
            {
                this.active_workflow = response;
            }
            else
                return response;
        }
    });
    return WidgetCollection;
});